package stuff;

import java.awt.Frame;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JFrame;

public class MinimizeAction extends AbstractAction{
	private static final long serialVersionUID = 1L;
	private JFrame param;
	
	public MinimizeAction(JFrame paramz) {
		this.param = paramz;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		this.param.setState(Frame.ICONIFIED);
	}
}
